/*
 * Copyright (C) 2023 xuexiangjys(xuexiangjys@163.com)
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *       http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 */

package com.xuexiang.templateproject.bean;

//import anet.channel.strategy.dispatch.DispatchConstants;
import java.util.List;
import kotlin.Metadata;
import kotlin.jvm.internal.Intrinsics;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;

public final class MatchQuestions {
    private final int courseId;
    @NotNull
    private final String courseName;
    @NotNull
    private final String imageUrl;
    @NotNull
    private final List<Question> questions;
    private final int subTaskId;

    public MatchQuestions(@NotNull String imageUrl, int i2, @NotNull List<Question> questions, @NotNull String courseName, int i3) {
        Intrinsics.checkNotNullParameter(imageUrl, "imageUrl");
        Intrinsics.checkNotNullParameter(questions, "questions");
        Intrinsics.checkNotNullParameter(courseName, "courseName");
        this.imageUrl = imageUrl;
        this.subTaskId = i2;
        this.questions = questions;
        this.courseName = courseName;
        this.courseId = i3;
    }

    /* JADX WARN: Multi-variable type inference failed */
    public static /* synthetic */ MatchQuestions copy$default(MatchQuestions matchQuestions, String str, int i2, List list, String str2, int i3, int i4, Object obj) {
        if ((i4 & 1) != 0) {
            str = matchQuestions.imageUrl;
        }
        if ((i4 & 2) != 0) {
            i2 = matchQuestions.subTaskId;
        }
        if ((i4 & 4) != 0) {
            list = matchQuestions.questions;
        }
        if ((i4 & 8) != 0) {
            str2 = matchQuestions.courseName;
        }
        if ((i4 & 16) != 0) {
            i3 = matchQuestions.courseId;
        }
        return matchQuestions.copy(str, i2, list, str2, i3);
    }

    @NotNull
    public final String component1() {
        return this.imageUrl;
    }

    public final int component2() {
        return this.subTaskId;
    }

    @NotNull
    public final List<Question> component3() {
        return this.questions;
    }

    @NotNull
    public final String component4() {
        return this.courseName;
    }

    public final int component5() {
        return this.courseId;
    }

    @NotNull
    public final MatchQuestions copy(@NotNull String imageUrl, int i2, @NotNull List<Question> questions, @NotNull String courseName, int i3) {
        Intrinsics.checkNotNullParameter(imageUrl, "imageUrl");
        Intrinsics.checkNotNullParameter(questions, "questions");
        Intrinsics.checkNotNullParameter(courseName, "courseName");
        return new MatchQuestions(imageUrl, i2, questions, courseName, i3);
    }

    public boolean equals(@Nullable Object obj) {
        if (this == obj) {
            return true;
        }
        if (!(obj instanceof MatchQuestions)) {
            return false;
        }
        MatchQuestions matchQuestions = (MatchQuestions) obj;
        return Intrinsics.areEqual(this.imageUrl, matchQuestions.imageUrl) && this.subTaskId == matchQuestions.subTaskId && Intrinsics.areEqual(this.questions, matchQuestions.questions) && Intrinsics.areEqual(this.courseName, matchQuestions.courseName) && this.courseId == matchQuestions.courseId;
    }

    public final int getCourseId() {
        return this.courseId;
    }

    @NotNull
    public final String getCourseName() {
        return this.courseName;
    }

    @NotNull
    public final String getImageUrl() {
        return this.imageUrl;
    }

    @NotNull
    public final List<Question> getQuestions() {
        return this.questions;
    }

    public final int getSubTaskId() {
        return this.subTaskId;
    }

    public int hashCode() {
        return (((((((this.imageUrl.hashCode() * 31) + this.subTaskId) * 31) + this.questions.hashCode()) * 31) + this.courseName.hashCode()) * 31) + this.courseId;
    }

    @NotNull
    public String toString() {
        return "MatchQuestions(imageUrl=" + this.imageUrl + ", subTaskId=" + this.subTaskId + ", questions=" + this.questions + ", courseName=" + this.courseName + ", courseId=" + this.courseId + ')';
    }
}